I hereby claim:
- I am maaarkin on github.
- I am maaarkin (https://keybase.io/maaarkin) on keybase.
- I have a public key ASA8U6vOSkmrdyR17QiHW3GoosALqu6nnA1MpmShuQ1aawo
To claim this, I am signing this object:
| package logger | |
| import ( | |
| "os" | |
| "go.uber.org/zap" | |
| "go.uber.org/zap/zapcore" | |
| ) | |
| type zapLogger struct { |
| package logger | |
| func init() { | |
| if logger == nil { | |
| logger = NewZapLogger() | |
| } | |
| } | |
| // Fields Type to pass when we want to call WithFields for structured logging | |
| type Fields map[string]interface{} |
I hereby claim:
To claim this, I am signing this object:
| package service | |
| import ( | |
| "github.com/maaarkin/errors-handling/pkg/domains/todo" | |
| "github.com/pkg/errors" | |
| ) | |
| //TodoService representa o servico que poderá ser exporto para a camada de consumo (rest, grpc, rabbitmq, etc...) | |
| type TodoService interface { | |
| Save(title string) (*todo.Todo, error) |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "github.com/maaarkin/errors-handling/internal/service" | |
| "github.com/pkg/errors" | |
| ) |
| #EXTM3U | |
| #EXTINF:-1 tvg-id="" tvg-name="24HS: AS AVENTURAS DE JACKIE CHAN" tvg-logo="https://cinexplay.com/img/series/d396ecd357736ad9780ec13515b75ba7.png" group-title="Canais | 24 Horas",24HS: AS AVENTURAS DE JACKIE CHAN | |
| http://udq.me:8880/live/chXg3/9fsDK/13225.m3u8 | |
| #EXTINF:-1 tvg-id="" tvg-name="24HS: BOB ESPONJA" tvg-logo="https://vignette.wikia.nocookie.net/international-entertainment-project/images/1/11/SpongeBob_SquarePants_-_2009_logo_%28Portuguese_and_Spanish%29.png/revision/latest?cb=20160828025521" group-title="Canais | 24 Horas",24HS: BOB ESPONJA | |
| http://udq.me:8880/live/chXg3/9fsDK/13207.m3u8 | |
| #EXTINF:-1 tvg-id="" tvg-name="24HS: CAVALEIROS DOS ZODÍACOS: DOZE CASAS " tvg-logo="https://vignette.wikia.nocookie.net/saintseya/images/a/a3/Cavaleiros-do-zodiaco.png/revision/latest?cb=20140714182808&path-prefix=pt" group-title="Canais | 24 Horas",24HS: CAVALEIROS DOS ZODÍACOS: DOZE CASAS | |
| http://udq.me:8880/live/chXg3/9fsDK/13208.m3u8 | |
| #EXTINF:-1 tvg-id="" tvg-name="24HS: CLÁSSICOS DISNEY" tvg-logo="https:/ |
| public class InterceptorDTO implements Serializable { | |
| private static final long serialVersionUID = -2075622644106420623L; | |
| @NotNull | |
| @Size(max = 80) | |
| private String name; | |
| @Size(max = 200) | |
| private String description; |
| private String templateInterceptor(TypeInterceptor type, TypeExecutionPoint executionPoint) { | |
| String result = null; | |
| String filePath = "template-interceptor"; | |
| try ( | |
| InputStream inputStream = new ClassPathResource( | |
| filePath + | |
| File.separator + | |
| type.getHeimdallInterceptor().getFile(executionPoint)).getInputStream(); | |
| InputStreamReader inputStreamReader = new InputStreamReader(inputStream, StandardCharsets.UTF_8); |
| public enum TypeInterceptor { | |
| LOG(new LogHeimdallInterceptor()), | |
| MOCK(new MockHeimdallInterceptor()), | |
| RATTING(new RattingHeimdallInterceptor()), | |
| ACCESS_TOKEN(new AccessTokenHeimdallInterceptor()), | |
| CLIENT_ID(new ClientIdHeimdallInterceptor()), | |
| CUSTOM(new CustomHeimdallInterceptor()), | |
| MIDDLEWARE(new MiddlewareHeimdallInterceptor()), | |
| OAUTH(new OAuthHeimdallInterceptor()), |
| public interface HeimdallInterceptor { | |
| String getFile(TypeExecutionPoint typeExecutionPoint); | |
| Object parseContent(String content); | |
| Map<String, Object> buildParameters(Interceptor interceptor); | |
| } |